<!DOCTYPE html>
<html>
<head>
    <title>{$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
</head>
<body class="home blog">
<include file="public@nav"/>
    <section class="xs-main index-main clr">
        <div class="inner">
            <div class="xs-left">
                <div class="top-list clr">
                    <div class="slider">
                        <div id="owl-demo">
                            <php>$where = ['post.recommended'=>1];</php>
                            <portal:articles where="$where" limit="0,5" order="post.published_time DESC" categoryIds="">
                                <div class="item">
                                    <div class="slider-img">
                                        <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}">
                                            <img src="__ROOT__/upload/{$vo.thumbnail}" alt="{:cnsubstr($vo.post_title,25)}" class="hdp-img" style="height:272px; width:504px;"/></a>
                                    </div>
                                    <div class="slider-content">
                                        <h2><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}">{:cnsubstr($vo.post_title,25)}</a></h2>
                                        <div class="slidertext xs-hidden">
                                            {:cnsubstr($vo.post_excerpt,50)}
                                        </div>
                                    </div>
                                </div>
                            </portal:articles>
                        </div>
                    </div>
                    <div class="tt xs-hidden">
                        <div class="s-title">
                            <img src="__TMPL__/public/assets/picture/hotlists-tip.jpg" style="height:28px;width:120px">
                        </div>
                        <ul>
                            <php>$where = ['post.recommended'=>1];</php>
                            <portal:articles where="$where" limit="5,6" order="post.published_time DESC" categoryIds="">
                                <li id="post-512"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark">{:cnsubstr($vo.post_title,25)}</a></li>
                            </portal:articles>
                        </ul>
                    </div>
                </div>
                <div class="daodu clr">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">功效与作用</span></h4>
                    </div>
                    <ul class="dd-list">
                        <portal:articles limit="6" order="post.published_time DESC" categoryIds="2">
                            <li>
                                <figure class="dd-img"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}"><img src="__ROOT__/upload/{$vo.thumbnail}" alt="{:cnsubstr($vo.post_title,25)}"/></a></figure>
                                <div class="dd-content">
                                    <h2 class="dd-title"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark">{:cnsubstr($vo.post_title,25)}</a></h2>
                                    <div class="dd-site xs-hidden">
                                        {:cnsubstr($vo.post_excerpt,50)}
                                    </div>
                                </div>
                            </li>
                        </portal:articles>
                    </ul>
                </div>
                <div id="g-dd" class="ad">
                </div>
                <div class="content-ajax">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">怎么喝才养生</span></h4>
                        <div class="count xs-hidden">
                            <i></i> 今日浏览量<strong></strong>篇 <em></em>
                        </div>
                    </div>
                    <portal:articles limit="6" order="post.published_time DESC" categoryIds="3">
                        <article id="post-532" class="post-532 post type-post status-publish format-standard hentry category-web-design tag-user-experience">
                            <figure class="entry-img"><span class="sort"></span><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}">
                                <img src="__ROOT__/upload/{$vo['thumbnail']}" alt="{:cnsubstr($vo.post_title,25)}" class="thumbnail"/></a></figure>
                            <div class="entry-content">
                                <h2 class="entry-title"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark">{:cnsubstr($vo.post_title,25)}</a></h2>
                                <div class="entry-site xs-hidden">
                                    {:cnsubstr($vo.post_excerpt,50)}
                                </div>
                                <div class="entry-meta">
                                    <div class="eye xs-hidden">
                                        <i class="fa fa-eye fa-1"></i><a href="javascript:void(0);">{$vo.post_hits} </a>
                                    </div>
                                    <div class="time">
                                        <i></i><a href="javascript:void(0);">{:date('y-m-d',$vo.published_time)}</a>
                                    </div>
                                </div>
                            </div>
                        </article>
                    </portal:articles>

                    <php>$where = ['post.recommended'=>1];</php>
                    <portal:articles limit="1" where="$where" order="post.published_time DESC" categoryIds="3">
                        <article id="post-532" class="post-532 post type-post status-publish format-standard hentry category-web-design tag-user-experience">
                            <figure class="entry-img"><span class="sort"></span><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}">
                                <img src="__ROOT__/upload/{$vo['thumbnail']}" alt="{:cnsubstr($vo.post_title,25)}" class="thumbnail"/></a></figure>
                            <div class="entry-content">
                                <h2 class="entry-title"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark">{:cnsubstr($vo.post_title,25)}</a></h2>
                                <div class="entry-site xs-hidden">
                                    {:cnsubstr($vo.post_excerpt,50)}
                                </div>
                                <div class="entry-meta">
                                    <div class="eye xs-hidden">
                                        <i class="fa fa-eye fa-1"></i><a href="javascript:void(0);">{$vo.post_hits}</a>
                                    </div>
                                    <div class="time">
                                        <i></i><a href="javascript:void(0);">{:date('y-m-d',$vo.published_time)}</a>
                                    </div>
                                </div>
                            </div>
                        </article>
                    </portal:articles>
                </div>
                <div id="pagenavi">
                </div>
                <!-- 后来加上的  后来加上的  后来加上的 后来加上的 后来加上的 后来加上的 后来加上的 -->
                <div class="daodu clr">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">质量与价格</span></h4>
                    </div>
                    <ul class="dd-list">
                        <portal:articles limit="6" order="post.published_time DESC" categoryIds="1">
                            <li>
                                <figure class="dd-img"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}"><img src="__ROOT__/upload/{$vo.thumbnail}" alt="{:cnsubstr($vo.post_title,25)}"/></a></figure>
                                <div class="dd-content">
                                    <h2 class="dd-title"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark">{:cnsubstr($vo.post_title,25)}</a></h2>
                                    <div class="dd-site xs-hidden">
                                        {:cnsubstr($vo.post_excerpt,50)}
                                    </div>
                                </div>
                            </li>
                        </portal:articles>
                    </ul>
                </div>
                <!-- 后来加上的  后来加上的  后来加上的 后来加上的 后来加上的 后来加上的 后来加上的 -->
            </div>
            <div class="xs-right sidebar xs-hidden xss-hidden">
                <div><!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
                <a href="{$theme_vars.indexImg.0.explain}"><img alt="{$theme_vars.indexImg.0.title}" src="__ROOT__/upload/{$theme_vars.indexImg.0.img}" style="width: 248px; height: 248px;"/></a>
                <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
            </div>
            <aside class="dates">
                <div class="si-title">
                    <h2>快速阅读</h2>
                </div>
                <ul>
                    <portal:articles limit="5" order="post.published_time DESC" categoryIds="">
                        <li><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" rel="bookmark" title="{:cnsubstr($vo.post_title,25)}">
                            <div class="time">
                                {:date('m-d',$vo.published_time)}
                            </div>
                            <p>
                                {:cnsubstr($vo.post_title,25)}
                            </p>
                        </a></li>
                    </portal:articles>
                </ul>
            </aside>
            <aside id="tw_post-2" class="widget-container widget_tw_post">
                <div class="si-title">
                    <h2>图文推荐</h2>
                </div>
                <div class="tw">
                    <portal:articles limit="14" order="post.published_time DESC" categoryIds="">
                        <div class="tw-list">
                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}" title=" {:cnsubstr($vo.post_title,25)}">
                                <img src="__ROOT__/upload/{$vo.thumbnail}" alt=" {:cnsubstr($vo.post_title,25)}" class="tw-img"/>
                                <p>
                                    {:cnsubstr($vo.post_title,25)}
                                </p>
                            </a>
                        </div>
                    </portal:articles>
                </div>
            </aside>
            <aside id="hot_post-2" class="widget-container widget_hot_post">
                <div class="si-title">
                    <h2>热门文章</h2>
                </div>
                <ul class="remen">
                    <portal:articles limit="8" order="post.post_hits DESC" categoryIds="">
                        <li><i class="fa fa-angle-right fa-1"></i><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}"> {:cnsubstr($vo.post_title,25)}</a></li>
                    </portal:articles>
                </ul>
            </aside>
            <div> <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
                <a href="{$theme_vars.indexImg.0.explain}"><img alt="{$theme_vars.indexImg.0.title}" src="__ROOT__/upload/{$theme_vars.indexImg.0.img}" style="width: 248px; height: 248px;"/></a>
            <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
        </div>
        <aside id="recent-posts-3" class="widget-container widget_recent_entries">
            <div class="si-title">
                <h2>随便看看</h2>
            </div>
            <ul>
                <php>$where = ['post.recommended'=>1];</php>
                <portal:articles where="$where" limit="8" order="post.post_hits DESC" categoryIds="">
                    <li><a href="{:cmf_url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}"> {:cnsubstr($vo.post_title,25)}</a></li>
                </portal:articles>
            </ul>
        </aside>
        <div id="g-sidebar-bot" class="ad">
            <div class="select fr">
                <h4>友情链接</h4>
                <ul class='xoxo blogroll'>
                    <links>
                        <li> <a href="{$vo.url|default=''}" target="{$vo.target|default=''}">{$vo.name|default=''}</a> </li>
                    </links>
                </ul>
            </div>
        </div>
        </div>
        </div>
    </section>

<include file="public@footer"/>
<include file="public@scripts"/>
</body>
</html>